package com.office.newUI.components.utils;

public class RowBean implements Comparable{
	public String key;
	public String value;
	public int sort;
	public RowBean(String _key,String _value,int _sort){
		key = _key;
		value = _value;
		sort = _sort;
	}
	
	public RowBean(String _key,String _value){
		key = _key;
		value = _value;
		sort = 0;
	}

	@Override
	public int compareTo(Object o) {
		
		if(sort > ((RowBean)o).sort) return 1;
		if(sort < ((RowBean)o).sort) return -1;
		return 0;
	}
}
